www.gusucode.com > 深度学习(asp)网址导航 v4.0.1 > 深度学习(asp)网址导航 v4.0.1\code\admin\siteConfig\siteConfig_Update.asp

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
projectRootPath = "../../"	'相对当前应用程序根的位置
%>
<!-- #include file ="../include/checkPurview.asp"-->
<!--#include file="../../ConnDB.asp"-->
<!-- #include file="../include/Function.Manage.Config.asp"-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>网站配置修改</title>
<link rel="stylesheet" type="text/css" href="../themes/base.css"/>
    <link href="../themes/<%=theme_Path%>/main.css" rel="stylesheet" type="text/css" />
<script language="javascript">

function form1_onsubmit()
{
	if (document.form1.siteName.value=="")
    {
      window.alert("请输入站点名称");
      return false;
     }
	if (document.form1.siteUrl.value=="")
    {
      window.alert("请输入站点url地址");
      return false;
     }
	if (document.form1.siteTitle.value=="")
    {
      window.alert("请输入网站标题");
      return false;
     }
	if (document.form1.copyright.value=="")
    {
      window.alert("请输入网站版权信息");
      return false;
     }
}
</script>

</head>
<body  id="bodyBg1">
<br />
&nbsp; <a href="siteConfig_Info.asp">站点信息</a> | <a href="SiteConfig_Update.asp">信息修改</a>
<hr class="Nav-hr" />
<br />
<dl class="manageContent">
    <dt>网站基本信息管理</dt>
    <dd>
    	<br />
<%

if (Request.Form("siteName") <> "") then
	Set rsSiteConfigUpdate=Server.CreateObject("Adodb.Recordset")
	sql="select * from deep_SiteConfig "
	rsSiteConfigUpdate.open sql,conn,3,2
	
	rsSiteConfigUpdate("fsiteName")=Request.Form("siteName")
	rsSiteConfigUpdate("fsiteUrl")=Request.Form("siteUrl")
	rsSiteConfigUpdate("flogoUrl")=Request.Form("logoUrl")
	rsSiteConfigUpdate("fsiteTitle")=Request.Form("siteTitle")
	rsSiteConfigUpdate("fmetaKeywords")=Request.Form("metaKeywords")
	rsSiteConfigUpdate("fmetaDescription")=Request.Form("metaDescription")
	rsSiteConfigUpdate("fcopyright")=Request.Form("copyright")
	rsSiteConfigUpdate("fICP")=Request.Form("ICP")
	rsSiteConfigUpdate("fwebmasterName")=Request.Form("webmasterName")
	rsSiteConfigUpdate("fEmail")=Request.Form("Email")
	rsSiteConfigUpdate("fQQ")=Request.Form("QQ")
	rsSiteConfigUpdate("fMSN")=Request.Form("MSN")
	rsSiteConfigUpdate("fphone")=Request.Form("phone")
	rsSiteConfigUpdate("ftheme")=Request.Form("theme")
	rsSiteConfigUpdate("fupFilesDir")=Request.Form("upFilesDir")
	rsSiteConfigUpdate("fhiddenArea")=Request.Form("hiddenArea")
	rsSiteConfigUpdate("fisHTML")=Request.Form("isHTML")
	rsSiteConfigUpdate("fisUrlRedirect")=Request.Form("isUrlRedirect")
	rsSiteConfigUpdate("fisAddSite")=Request.Form("isAddSite")
	rsSiteConfigUpdate("fisAddSiteProblem")=Request.Form("isAddSiteProblem")

	
	rsSiteConfigUpdate.update

	rsSiteConfigUpdate.close
	Set rsSiteConfigUpdate=Nothing

	Response.Write("<p align='center'>["& site_siteName &"]网站配置修改成功</p>")
else
%>

<form id="form1" name="form1" method="post" action="SiteConfig_Update.asp" onsubmit="return form1_onsubmit()">
  <table width="98%" border="0" align="center" class="tableBoderForm">
    <tr>
      <td width="180">网站名称:</td>
      <td><input name="siteName" type="text" value="<%=site_siteName%>" size="50"/></td>
    </tr>
    <tr>
      <td>网站网址:</td>
      <td><input name="siteUrl" type="text" value="<%=site_siteUrl%>" size="50"/>
      &nbsp;&nbsp;* 输入 http:// </td>
    </tr>
    <tr>
      <td>Logo地址:</td>
      <td><input name="logoUrl" type="text" value="<%=site_logoUrl%>" size="50" />
      <iframe  ID="UploadFiles" frameborder=0 scrolling=no width="600" height="23" src="../include/upload_form.asp?SavePath=<%=projectRootPath & site_upFilesDir%>config/&parentBackValue=form1.logoUrl&MaxSize=500&FileType=png&saveName=Logo_deepStudy.png"></iframe>
           <!--
            	SavePath 上传文件的保存路径
                parentBackValue 返回值所放入的form表单名
                MaxSize 上传文件的最大尺寸
                FileType 上传文件的文件类型
                'saveName  0:自动取无重复的服务器时间字符串为文件名   '1:自动取源文件名  '字符串:自定义的文件名,如"mypic.jpg"

            -->
		<br />
		上传图片尺寸视网站效果自定,图片必须是png格式
      </td>
    </tr>
    <tr>
      <td>网站标题:</td>
      <td><textarea name="siteTitle" cols="70" rows="3"><%=site_siteTitle%></textarea></td>
    </tr>
	<tr>
	  <td>meta关键字</td>
	  <td><textarea name="metaKeywords" cols="70" rows="3"><%=site_metaKeywords%></textarea></td>
	  </tr>
	<tr>
	  <td>meta说明:</td>
	  <td><textarea name="metaDescription" cols="70" rows="3"><%=site_metaDescription%></textarea></td>
	  </tr>
	<tr>
      <td>版权信息:</td>
      <td><textarea name="copyright" cols="70" rows="6"><%=site_copyright%></textarea></td>
    </tr>
    <tr>
      <td>ICP备案:</td>
      <td><input name="ICP" type="text" value="<%=site_ICP%>" maxlength="20" /></td>
    </tr>
    <tr>
      <td>站长姓名:</td>
      <td><input name="webmasterName" type="text" value="<%=site_webmasterName%>" /></td>
    </tr>
    <tr>
      <td>站长信箱:</td>
      <td><input name="Email" type="text" value="<%=site_Email%>" size="50" /></td>
    </tr>
	
    <tr>
      <td>联系QQ:</td>
      <td><input name="QQ" type="text" value="<%=site_QQ%>" size="50" /></td>
    </tr>
	
    <tr>
      <td>联系MSN:</td>
      <td><input name="MSN" type="text" value="<%=site_MSN%>" size="50" /></td>
    </tr>
    <tr>
      <td>联系电话:</td>
      <td><input name="phone" type="text" value="<%=site_phone%>" /></td>
    </tr>
    <tr>
      <td>上传文件目录:</td>
      <td  ><input name="upFilesDir" type="text" value="<%=site_upFilesDir%>" /></td>
    </tr>
	
    <tr>
      <td>网站默认皮肤设置:</td>
      <td>
        <select name="theme" id="select">
          <option value="default" <%if (site_theme="default") then%>selected="selected"<% end if %> >深度空间风格(默认)</option>
          <option value="itstudy" <%if (site_theme="itstudy") then%>selected="selected"<% end if %> >IT学习网风格</option>
          <option value="landiaodiao" <%if (site_theme="landiaodiao") then%>selected="selected"<% end if %> >蓝调调风格</option>
        </select>
        </td>
    </tr>
    <tr>
          <td>网站隐藏区域:</td>
      <td><textarea name="hiddenArea" cols="60" rows="5" id="hiddenArea"><%=site_hiddenArea%></textarea></td>
    </tr>
    <tr>
      <td>新站收录设置:</td>
      <td>
	  
		  <input name="isAddSite" type="radio" value="1" <%if Site_isAddSite=1 then%>checked="checked"<%end if%> /> 开启&nbsp; &nbsp;
		  <input name="isAddSite" type="radio" value="0" <%if Site_isAddSite=0 then%>checked="checked"<%end if%> />  禁止
	  	  </td>
    </tr>
	<tr>
      <td>网站问题提交设置:</td>
      <td>
		  <input name="isAddSiteProblem" type="radio" value="1" <%if Site_isAddSiteProblem=1 then%>checked="checked" <%end if%>/> 开启&nbsp; &nbsp;
		  <input name="isAddSiteProblem" type="radio" value="0"  <%if Site_isAddSiteProblem=0 then%>checked="checked" <%end if%>/>  禁止
	  	  </td>
    </tr>
    <tr>
          <td>是否html静态:</td>
          <td>
          	<input name="isHTML" type="radio" value="1" <%if site_isHTML=1 then%>checked="checked"<%end if%> />开启
          	<input name="isHTML" type="radio" value="0" <%if site_isHTML=0 then%>checked="checked"<%end if%> />禁止
          </td>
    </tr>
    <tr>
          <td>是否启用转向URL设置:</td>
      <td>
        <input name="isUrlRedirect" type="radio" value="1" <%if site_isUrlRedirect=1 then%>checked="checked" <%end if%> /> 开启&nbsp; &nbsp;
		  <input name="isUrlRedirect" type="radio" value="0" <%if site_isUrlRedirect=0 then%>checked="checked" <%end if%>/>  
		  禁止
        &nbsp; * 开启此功能后,网站url隐藏,通过站内文件打开网站</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="修改" />
      <input type="reset" name="Reset" value="重置" /></td>
    </tr>
  </table>
</form>
        <br />
    </dd>
</dl>

<p align="center">* 内容为空前台不会显示</p>
<%
end if

Call CloseConnDB()
%>
</body>
</html>